package Messages;

import java.util.ArrayList;

public class GestionMessages {
    private int nbMessages;
    private ArrayList<String> messages = new ArrayList<String>();
    
    public GestionMessages(){
        this.nbMessages = 0;
    }
    
    public void setMessage(String pseudo, String message){
        String messageComplet = pseudo+" dit : "+message;
        messages.add(messageComplet);
        ++nbMessages;
    }
    
    public ArrayList<String> getMessages(){
        return this.messages;
    }
    
    public int getNbMessages(){
        return this.nbMessages;
    }
}
